package com.itheima.mapper;

import com.itheima.domain.Items;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @param
 * @return
 */
public interface ItemsMapper {
    @Select("select * from items where id in (select items_id from orderdetail where orders_id=#{id})")
    List<Items> findById(int id);
}
